package com.brillilab.service.core.method;

import com.brillilab.domain.vo.method.MethodSearchVo;

import java.util.List;

/**
 * 方法搜索
 * @author WuMenghao
 * @date    2019-03-01
 */
public interface IMethodSearchService {
    /**
     * 新增搜索记录
     * @param searchContent
     * @param searchType
     * @param userId
     * @return
     */
    boolean insertMethodSearchRecord(String searchContent,Integer searchType,Long userId);

    List<MethodSearchVo> getMethodReferenceHotSearchRecord();

    List<MethodSearchVo> getMethodReferenceSearchHistory(Long userId);

    List<MethodSearchVo> getMethodRepositorySearchHistory(Long userId);

    boolean clearMethodSearchHistory(Long userId,Integer type);
}
